package com.xuelang.pipeline.infrastructure.pipeline.converter;

import com.xuelang.pipeline.domain.pipeline.VariableSetting;
import com.xuelang.pipeline.infrastructure.pipeline.dataobject.VariableSettingDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <p>触发配置实体与DO转换类</p>
 *
 * @author : yixin.lys
 * @date : 2024-06-12 11:14
 **/
@Mapper
public interface VariableSettingToDOConverter {

    VariableSettingToDOConverter INSTANCE = Mappers.getMapper(VariableSettingToDOConverter.class);

    /**
     * 从DO转换
     * @param target
     * @return
     */
    VariableSetting fromDO(VariableSettingDO target);

    /**
     * 转为DO
     * @param target
     * @return
     */
    VariableSettingDO toDO(VariableSetting target);
}
